<template>
  <div class="login-container">
    <div class="title-container">
      <div class="login-bg"></div>
      <div class="title-content">
        <div class="herder-span">
          <SystemTitle :notJump="true" />
        </div>
        <div class="info-content">
          <div class="info-item" v-for="item in infos" :key="item.title">
            <div class="icon-content">
              <i class="iconfont" :class="item.icon" />
            </div>
            <div class="text-content">
              <div class="title">{{ item.title }}</div>
              <div class="texts">{{ item.texts }}</div>
            </div>
          </div>
        </div>
        <div class="footer-span">QianfanAdmin 中后台系统开源框架 MIT</div>
      </div>
    </div>
    <div class="form-container"><slot name="default" /></div>
  </div>
</template>
<script setup name="PadLogin">
import SystemTitle from "@/Layout/Components/SystemTitle.vue";
const infos = [
  {
    icon: "icon-danse-shuziluansheng",
    title: "技术栈",
    texts: "Vue3 + Element Plus + Pinia + Vite + Javascript",
  },
  { icon: "icon-dianziqianming", title: "协议", texts: "MIT 协议开源" },
  {
    icon: "icon-bumenguanli1",
    title: "功能板块",
    texts: "集成前台、后台、登录页等多个板块",
  },
  {
    icon: "icon-xingxi",
    title: "特色",
    texts: "主题/布局切换、系统自定义配色、水印、tab页签",
  },
  {
    icon: "icon-gitee2",
    title: "项目地址",
    texts: "https://gitee.com/yangdawen/qianfan-admin",
  },
];
</script>
<style lang="scss" scoped>
.login-container {
  background-color: #00265f;
  color: #93e0ff;
  box-shadow: 0 10px 40px -10px #ffffff50;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  overflow: hidden;
  .title-container {
    flex: 1;
    height: 100%;
    position: relative;
    .login-bg {
      background-image: url("../../Assets/bg.jpg");
      background-repeat: no-repeat;
      background-size: cover;
      background-attachment: fixed;
      width: 100%;
      height: 100%;
      position: absolute;
    }
    .title-content {
      width: 100%;
      height: 100%;
      position: absolute;
      /* 毛玻璃效果 */
      backdrop-filter: blur(30px);
      -webkit-backdrop-filter: blur(30px); /* 兼容 Safari */
      .herder-span {
        position: absolute;
        left: 18px;
      }
      .info-content {
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        padding: 0 30px;
        box-sizing: border-box;
        .info-item {
          width: 300px;
          border: 1px solid #93e0ff;
          box-shadow: 1px 1px 10px #93e0ff;
          background-color: #00265f;
          border-radius: 8px;
          padding: 8px 8px;
          box-sizing: border-box;
          display: flex;
          margin: 1px;
          .icon-content {
            border: 1px solid #93e0ff;
            border-radius: 8px;
            width: 28px;
            height: 28px;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-right: 10px;
            overflow: hidden;
            i {
              transition: 0.5s;
            }
          }
          .text-content {
            .title {
              font-size: 0.8rem;
              font-weight: bold;
              color: #93e0ff;
            }
            .texts {
              font-size: 0.6rem;
              color: #93e0ff;
            }
          }
        }
        .info-item:hover .icon-content > i {
          transform: scale(1.5);
          text-shadow: 1px 1px 10px #93e0ff;
        }
      }
      .footer-span {
        position: absolute;
        bottom: 18px;
        left: 18px;
        font-size: 0.8rem;
      }
    }
  }
  .form-container {
    width: 45%;
    height: 100%;
  }
}
</style>
